﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RuoVea.GoFastdfs.Common
{
    /// <summary>
    /// 常量
    /// </summary>
    public class FinalAPI
    {
        /// <summary>
        /// API 响应成功
        /// </summary>
        public static String API_STATUS_SUCCESS = "ok";

        /// <summary>
        /// 配置管理API
        /// </summary>
        public static String API_RELOAD = "/reload";

        /// <summary>
        /// 文件统计信息API
        /// </summary>
        public static String API_STAT = "/stat";

        /// <summary>
        /// 文件上传API
        /// </summary>
        public static String API_UPLOAD = "/upload";

        /// <summary>
        /// 文件删除API
        /// </summary>
        public static String API_DELETE = "/delete";

        /// <summary>
        /// 文件信息API
        /// </summary>
        public static String API_GET_FILE_INFO = "/get_file_info";

        /// <summary>
        /// 文件列表API
        /// </summary>
        public static String API_LIST_DIR = "/list_dir";

        /// <summary>
        /// 修复统计信息API
        /// </summary>
        public static String API_REPAIR_STAT = "/repair_stat";
        public static String API_REMOVE_EMPTY_DIR = "/remove_empty_dir";
        public static String API_BACKUP = "/backup";

        /// <summary>
        /// 同步失败修复API
        /// </summary>
        public static String API_REPAIR = "/repair";

        /// <summary>
        /// 从文件目录中修复元数据API
        /// </summary>
        public static String API_REPAIR_FILE_INFO = "/repair_fileinfo";
        public static String API_STATUS = "/status";
    }
}
